package com.qq.weixin.constant;

/**
 * 微信API常量类
 * @author li.jiang
 *
 */
public final class APIConstant {
    /**
     * 网页授权——授权类型：授权编码
     */
    public static final String GRANT_TYPE_AUTHORIZATION = "authorization_code";
    /**
     * 网页授权——授权类型：刷新token
     */
    public static final String GRANT_TYPE_REFRESH = "refresh_token";
    /**
     * 统一下单——设备号类别为WEB，表示PC网页或公众号内支付
     */
    public static final String UNIFIEDORDER_DEVICEINFO_TYPE_WEB = "WEB";
    /**
     * 获取openid并写入cookie的uri
     */
    public static final String OAUTH2_OPENID_URI = "/oauth2/openid.do";
    /**
     * 网页授权认证url模板
     */
    public static final String AUTHORIZE_URL_TEMPLATE = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=%s&redirect_uri=%s&response_type=code&scope=snsapi_userinfo&state=getopenid#wechat_redirect";
    private APIConstant() {
    }
}
